The Three Prisoners And Hats Cat Puzzle